package com.chk.gateway.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2023-10-21 16:47:58
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("serial")
public class User {
    //id
    private Integer id;
    //用户名
    private String username;
    //密码
    private String password;
    //0.封禁的用户 1.普通用户 2.管理员
    private String role;
    //昵称
    private String userNick;
    //用户头像
    private String avatar;
    //邮箱
    private String email;
    //电话
    private String phone;
    //地址
    private String address;
    //0.正常 1.删除
    private String deleted;
    //创建时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //用户文章的点赞总量
    private Object liked;
    //用户文章总的被收藏量
    private Integer collect;
    //简介
    private String descInfo;

}

